package com.example.demo.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author tds
 * @version 1.0.0
 * @Company
 * @ClassName MyService
 * @Description TODO（这里用一句话描述这个类的作用)
 * @Date 2022-04-05 23:39
 */
public interface MyService {

    /**
     * 自定义的权限校验
     *
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPerimit(HttpServletRequest request, Authentication authentication);
}
